home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2.sit / Raven 1.2 / • Extras • / SGI STL / README.sunpro41 < prev    next >
Text File  |  1997-05-28  |  2KB  |  54 lines

  1. Note for SUNPro C++ 4.1 users
  2.  
  3. ----------------------------------------------------------------------------
  4.  
  5. Known problems
  6.  
  7. Compiling
  8.  
  9. C++ 4.1 have problems recognizing types nested in template classes when
  10. parsing declarations. For example , the following construct fails (suppose
  11. STL vector is a base type for derived_vector ):
  12.  
  13. derived_vector<int> years;
  14. derived_vector<int>::iterator i;
  15.  
  16. To work around this problem completely, you should repeat those typedefs
  17. from base class that you are going to use in any way:
  18.  
  19. template <class T> class derived_vector : public vector<T> {
  20. typedef vector<T>::iterator iterator;
  21. ...
  22.  
  23. STL code itself is now free of this problem.
  24.  
  25. Linking
  26.  
  27. You may have troubles getting linker errors compiling multiple targets in
  28. one directory ( for example, running cygnus testsuite). That is a bug in
  29. handling Templates.DB dependencies. Known solutions are :
  30.  
  31. a) for one-file tests, specify option -pto (one-file-mode) option to turn
  32. off database completely. Option -pts(single-file-mode) doesn't fix all
  33. problems.
  34.  
  35. b) for complex projects, use separate Templates.DB directories for different
  36. targets.
  37.  
  38. ----------------------------------------------------------------------------
  39.  
  40. Migration notes
  41.  
  42. You should experience no other problems migrating from HP STL to SGI STL.
  43.  
  44. ----------------------------------------------------------------------------
  45.  
  46. Versions prior to 4.1
  47.  
  48. For info on SUNPro C++ 4.0.1, see README.sunpro401. SUNPro C++ older than
  49. 4.0.1 won't compile STL. You had to upgrade.
  50.  
  51. ----------------------------------------------------------------------------
  52.  
  53. Last updated : March 5, 1997.
  54.